package com.dsh.search.feign;


import com.dsh.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeignService {

    @GetMapping("/product/attr/info/{attrId}")
    R attrsInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/attr/infos")
    R brandsInfo(@PathVariable ("brandIds") List<Long> brandId);

}
